import 'package:flutter/material.dart';

class StackCase extends StatelessWidget {
  const StackCase({super.key});
  @override
  Widget build(BuildContext context) {
   return Container(
    width: double.infinity,
    height: 500,
    alignment: Alignment.center,
    decoration: const BoxDecoration(
      color: Colors.black12,
    ),
    child: Stack(
      alignment: Alignment.center,//对齐方式
      clipBehavior: Clip.none,//不裁切

      children: [
        Container(
          width: 200,
          height: 200,
          color: Colors.blue,
        ),
        //移动图片位置
        Positioned(
          top: -90,
          child: Image.asset('assets/open_eyes.png',
          width: 100,
          height: 100,
          ),
        )
      ],
    ),
   );
  }

}